﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;

namespace ConsumeAndProduceFactory
{
    class Program
    {
        static void Main(string[] args)
        {
            ConsumeAndProduceFactory testFactory = new ConsumeAndProduceFactory(10, 10, 5);
            TestFacade test = new TestFacade();
            testFactory.Producing += new FactoryEventHandler(test.myProduce);
            testFactory.Consuming += new FactoryEventHandler(test.myConsume);
            testFactory.startwork();
            while (true)
            {
            }
        }
    }
}
